Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Diagnostics.​Metrics.​ObservableGauge<​T>

Assembly: System.Diagnostics.DiagnosticSource

Inheritance: object → InstrumentObservableInstrument<​T> → ObservableGauge

Represents an observable instrument that reports non-additive values when the instrument is being observed, for example, the current room temperature. Call <see cref="Overload:System.Diagnostics.Metrics.Meter.CreateObservableGauge" /> to create the observable counter object.

Properties

public bool
IsObservable
public string
Description
Gets the instrument description.
public bool
Enabled
Gets a value that indicates if there are any listeners for this instrument.
public Meter
Meter
Gets the Meter that created the instrument.
public string
Name
Gets the instrument name.
public string
Unit
Gets the instrument unit of measurements.
Returns the tags associated with the instrument.

Methods

Observe​()
protected void
Publish​()
Inherited from Instrument
Activates the instrument to start recording measurements and to allow listeners to start listening to such measurements.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object